package org.example.design.策略;

/**
 * @Auther:Liu
 * @Testname:TravelContext
 * @Date:2025/8/15 15:18
 */
public class TravelContext implements VehicleStrategy{
    private VehicleStrategy strategy;

    public TravelContext(VehicleStrategy strategy) {
        this.strategy = strategy;
    }

    @Override
    public void Vehicle() {
        System.out.println("出去旅游");
        strategy.Vehicle();
        System.out.println("地方不错");
    }
}
